﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Factory.MasterData.MaterialClassifications.Dto
{
    /// <summary>
    /// 物料产品分类树形表
    /// </summary>
    public class MaterialClassificationTreeDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string title { get; set; }
        /// <summary>
        /// 是否打开
        /// </summary>
        public bool spread { get; set; }
        /// <summary>
        /// 子集
        /// </summary>
        public List<MaterialClassificationTreeDto> children { get; set; } = new List<MaterialClassificationTreeDto>();
    }
}
